package com.project.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 饼状图实体对象
 */

@Data
@NoArgsConstructor
public class PieBean {
    /**类别名*/
    private String name;
    /**值*/
    private Integer value;

    public PieBean(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    @Override
    public String toString() {
        return "PieBean{" +
                "name='" + name + '\'' +
                ", value=" + value +
                '}'+"\n";
    }
}
